package com.badlogic.androidgames.framework.impl;

import com.badlogic.androidgames.framework.Game;
import com.badlogic.androidgames.framework.Screen;
import com.badlogic.androidgames.framework.gl.Camera2D;
import com.badlogic.androidgames.framework.gl.SpriteBatcher;

public abstract class GLScreen extends Screen {
    protected final GLGraphics glGraphics;
    protected final GLGame glGame;
    public SpriteBatcher batcher;
	public Camera2D camera;
    
    public GLScreen(Game game) {
        super(game);
        glGame = (GLGame)game;
        glGraphics = ((GLGame)game).getGLGraphics();
    }
    
    public GLScreen(Game game , int maxSprites , int camWidth , int camHeight)
    {
    	 super(game);
         glGame = (GLGame)game;
         glGraphics = ((GLGame)game).getGLGraphics();
         batcher = new SpriteBatcher(glGraphics, maxSprites);
         camera = new Camera2D(glGraphics, camWidth, camHeight);
    }

}
